const common=require("./webpack.common");
const { merge }=require("webpack-merge")
const path=require("path")
const webpack=require("webpack")
module.exports=merge(common,{
  mode:"development",
  devtool:"cheap-module-source-map",
  devServer:{
    hot:true,
  },
  plugins:[
    new HtmlWebpackPlugin({
      title:"demo",
      template:"./public/index.html",
      filename:"index.html"
    }),
    new webpack.HotModuleReplacementPlugin()
  ]
 

})